package com.itheima.修饰符.状态修饰符.mystatic;

public class Demo {
    public static void main(String[] args) {
        Student stu1 = new Student();
        stu1.name = "张三";
        stu1.age = 23;
        stu1.school = "传智专修学院";
        //System.out.println(stu1.name + "," + stu1.age+","+stu1.school);

       // Student stu2 = new Student();
        //stu2.name = "李四";
        //stu2.age = 24;
        //System.out.println(stu2.name + "," + stu2.age+","+stu2.school);

        //多了一种调用方式,推荐使用类名.静态成员方式去调用
        System.out.println(Student.school);
        Student.method();

        /*System.out.println(stu1.school);
        System.out.println(stu2.school);
        stu1.method();
        stu2.method();*/
    }
}
